﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body> 
    <script>
        val = "123456"
        let isletter = /^[a-zA-Z]+$/.test(val);
        document.write(isletter);
        document.write("<br>");
        val2 = "asaaa"
        let isletter2 = /^[a-zA-Z]+$/.test(val2);
        document.write(isletter2);
    </script>
</body>
</html>